home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 December / PCWDEC06.iso / Software / Trial / Paint Shop Pro XI / Data1.cab / _8F45F672B6C14916BBCC21426CB5E5D6 < prev    next >
Encoding:
Text File  |  2006-08-04  |  3.1 KB  |  90 lines

  1. from PSPApp import *
  2.  
  3. def ScriptProperties():
  4.     return {
  5.         'Author': u'Corel Corporation',
  6.         'Copyright': u'Copyright (c) 2003-2004 Corel Corporation  All rights reserved.',
  7.         'Description': u'',
  8.         'Host': u'Paint Shop Pro',
  9.         'Host Version': u'8.10'
  10.         }
  11.  
  12. def Preset_BallsAndBubbles():
  13.     return {
  14.         'Illumination': {
  15.             'MaxAmbience': 100, 
  16.             'MinAmbience': 0, 
  17.             'LightList': [{
  18.                 'BubbleLight': App.Constants.Boolean.false, 
  19.                 'Color': (255,255,255), 
  20.                 'Direction': (0.602786,-0.717903,-0.348231), 
  21.                 'HighlightSize': 11
  22.                 },{
  23.                 'BubbleLight': App.Constants.Boolean.false, 
  24.                 'Color': (192,192,192), 
  25.                 'Direction': (-0.54285,0.492579,0.680205), 
  26.                 'HighlightSize': 24
  27.                 },{
  28.                 'BubbleLight': App.Constants.Boolean.false, 
  29.                 'Color': (161,157,157), 
  30.                 'Direction': (-0.03154,-0.046415,0.998424), 
  31.                 'HighlightSize': 20
  32.                 }]
  33.             }, 
  34.         'Mode': App.Constants.CountType.Multiple, 
  35.         'Multiple': {
  36.             'AverageSize': 40, 
  37.             'Coverage': 20, 
  38.             'CreateMethod': App.Constants.BubbleCreateMethod.NonIntersecting, 
  39.             'SizeVariation': 100
  40.             }, 
  41.         'RandomSeed': 21739, 
  42.         'RandomizePlacement': App.Constants.Boolean.false, 
  43.         'Single': {
  44.             'MaxPossibleSize': App.Constants.Boolean.true
  45.             }, 
  46.         'Surface': {
  47.             'Material': {
  48.                 'Color': None, 
  49.                 'Pattern': None, 
  50.                 'Gradient': {
  51.                     'Name': u'Corel_06_001', 
  52.                     'GradientType': App.Constants.GradientType.Radial, 
  53.                     'Angle': 0, 
  54.                     'RepeatCount': 0, 
  55.                     'RepeatType': App.Constants.RepeatType.Pad, 
  56.                     'ColorStops': None, 
  57.                     'TransparencyStops': [], 
  58.                     'CenterPoint': (0.5,0.5), 
  59.                     'FocalPoint': (0.5,0.5), 
  60.                     'Invert': App.Constants.Boolean.true
  61.                     }, 
  62.                 'Texture': None
  63.                 }, 
  64.             'BumpMap': {
  65.                 'Active': App.Constants.Boolean.false, 
  66.                 'Depth': 63, 
  67.                 'FileName': r'', 
  68.                 'Fit': App.Constants.Boolean.false, 
  69.                 'Size': 335, 
  70.                 'Smoothness': 37
  71.                 }, 
  72.             'EnvironmentMap': {
  73.                 'FringeType': 17996, 
  74.                 'Active': App.Constants.Boolean.false, 
  75.                 'FileName': r'', 
  76.                 'FringeSpacing': 2, 
  77.                 'PatternOpacity': 33, 
  78.                 'EnvironmentType': App.Constants.BubbleMapType.CurrentImage
  79.                 }, 
  80.             'Gloss': 20, 
  81.             'Opacity': 20, 
  82.             'Shininess': 50
  83.             }
  84.         }
  85.  
  86. def Do(Environment):
  87.     # Balls And Bubbles
  88.     App.Do( Environment, 'BallsAndBubbles',         Preset_BallsAndBubbles())
  89.  
  90.